//
//  Extend.swift
//  SectionCorner
//
//  Created by han on 2019/7/19.
//  Copyright © 2019 han. All rights reserved.
//
import Foundation

struct HeadlineExtended<T> {
    var value: T
    init(_ value: T) {
        self.value = value
    }
}

protocol HeadlineExtensionProtocol {
    associatedtype T
    var ht: HeadlineExtended<T> { get set }
    static var ht: HeadlineExtended<T>.Type { get set }
}

extension HeadlineExtensionProtocol {
    var ht: HeadlineExtended<Self> {
        get { return HeadlineExtended(self) }
        set {}
    }
    
    static var ht: HeadlineExtended<Self>.Type {
        get { return HeadlineExtended<Self>.self }
        set {}
    }
}

